import Good from '@/pages/component/good/Good';
import React from 'react';
import './index.less';
export default function GoodList(props: { goodlist: Array<any> }) {
  let { goodlist } = props;
  return (
    <>
      <div className="gussylike_title">
        <span className="line"></span>
        <span className="main_title">你可能还喜欢</span>
        <span className="line"></span>
      </div>
      <div className="goodlist">
        {goodlist.map((item, index) => {
          return (
            <div key={index} className="good">
              <Good
                id={item._id}
                name={item.name}
                price={item.price}
                tag={item.tag}
                desc={item.desc}
                imgs={item.imgs}
              ></Good>
            </div>
          );
        })}
      </div>
    </>
  );
}
